x11: make _gdk_device_query_state report the master's device state
authorLionel Landwerlin <llandwerlin@gmail.com>
Fri, 17 May 2013 12:28:04 +0000 (13:28 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 20 May 2013 01:22:43 +0000 (21:22 -0400)
commitea6ac66392269ae2f78ab76646bbae65bc61330c
treea552d8a0de6259f1a8ce458a496cc65810a3a5cc
parent201410de60405148a8ae1e0bad568a9879fc06a8
x11: make _gdk_device_query_state report the master's device state

Calling XIQueryPointer() on a slave device is going to trigger a
BadDevice X error. So in case we query a slave device state, ask the
master device instead.

https://bugzilla.gnome.org/show_bug.cgi?id=700233
gdk/x11/gdkdevice-xi2.c